// 导入vue
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

/////////////////////////////////////////////////////


// 安装 cnpm i element-ui -S
// 导入ElementUI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)  //挂载到vue


// 安装 cnpm install axios --save
// 导入axios
import axios from 'axios'
axios.defaults.timeout = 30000;
axios.defaults.baseURL='http://127.0.0.1:8000/';  //后端根URL
Vue.prototype.$axios=axios  //挂载


//安装 cnpm install echarts --save
//导入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts  //挂载




/////////////////////////////////////////////////////

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
